package com.dishdex.menuhub.app.controller;

import com.dishdex.menuhub.module.module.async.AsyncTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:
 * Package: com.dishdex.menuhub.app.controller
 * Description:
 *
 * @Author:
 * @Create 2025/11/10 10:26
 * @Version 1.0
 */
@RestController
@Slf4j
public class OrderController {

    @Autowired
    private AsyncTaskService asyncTaskService;

    @RequestMapping("/order")
    public String order() {
        log.info("订单存库");

        asyncTaskService.asyncSendSms();
        asyncTaskService.asyncRecordLog();
        asyncTaskService.asyncPush();

        return "下单成功";
    }

}
